<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
 <meta name="renderer" content="webkit">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>合同方案列表</title>
<jsp:include page="../../import.jsp" flush="true" />
<style>
	.div_title{
		height:49px;
		padding-top:20px;
		text-align:center;
		font-family:"Arial Negreta", "Arial Normal", "Arial";
		font-size:18px;
		border:1px solid rgba(228,228,228,1);
	}
</style>
</head>
<body class="iframeBody">
<div class="Wrapper">

	<div class="div_title"><span>基础信息</span></div>
	<form id="review_form">
		<div class="fieldset1 tabel_col clearFix">
			<div class="fieldBox col_50">
				<div class="label">合同方案编码</div>
				<div class="field">
					<input name="cfgCd" id="cfgCd" type="text" value="${prjContCfgVO.cfgCd}" class="ui-textbox"/>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">合同方案名称</div>
				<div class="field">
					<input name="contNm" id="cfgNm" type="text" value="${prjContCfgVO.cfgNm}" class="ui-textbox"/>
				</div>
			</div>
			<div class="fieldBox col_50" >
				<div class="label">支持的事业部</div>
				<div class="field">
					<input name="orgCd" id="orgCd" type="text" value="${prjContCfgVO.orgNm}" class="ui-textbox"/>
				</div>
			</div>
			<div class="fieldBox col_50" >
				<div class="label">支持的项目类型</div>
				<div class="field">
					<input name="prjTypCd" id="prjTypCd" type="text" value="${prjContCfgVO.prjTypNm}" class="ui-textbox"/>
				</div>
			</div>
			<div class="fieldBox col_50" >
				<div class="label">第三方机构</div>
				<div class="field">
					<input name="insCode" id="insCode" type="text" value="${prjContCfgVO.insNm}" class="ui-textbox"/>
				</div>
			</div>
		</div>
	</form>
	<div class="div_title"><span>我司合同</span></div>
	<div class="fieldset1 tabel_col clearFix">
		<c:forEach items="${wsList }" var="cont">
			<div class="fieldBox col_50">
				<div class="label">${cont.contNm}</div>
				<div class="field" style="text-align:center">
					<c:if test="${cont.isVal == 1 }">
						<a href="javascript:void(0)" onclick="showDialog('${cont.valRule}','${cont.contKv}')">取值</a>
					</c:if>
					<%-- ${cont.contKv}${cont.contKv != null }<a href="javascript:void(0)" onclick="showDialog('${cont.valRule}','${cont.contKv}')">取值</a> --%>
				</div>
			</div>
		</c:forEach>
	</div>
	<div class="div_title"><span>资方合同</span></div>
	<div class="fieldset1 tabel_col clearFix">
		<c:forEach items="${zfList }" var="cont">
			<div class="fieldBox col_50">
				<div class="label">${cont.contNm}</div>
				<div class="field">
					
				</div>
			</div>
		</c:forEach>
	</div>
</div>


<script type="text/javascript">

	$(function(){
		$("#review_form").ligerForm();
	});

	function showDialog(ruleValue,contKv){
		var rtitle = "";
		if("zgshBcxy"==ruleValue){
			rtitle="ZGSH补充协议";
		}else if("zgshZlzfb"==ruleValue){
			rtitle="ZGSH租赁支付表";
		}else if("zgshMM"==ruleValue){
			rtitle="ZGSH买卖合同";
		}
		$.ligerDialog.open({
            height:350,
            width: 450,
            title : rtitle,
            url: '<%=path%>/cont/prj/toContKvPage.do?rule='+ruleValue, 
            showMax: false,
            showToggle: true,
            showMin: false,
            isResize: true,
            slide: false,
            data: {
            	mode:'show',
            	contKv:contKv
            }
            //自定义参数
            //myDataName: $("#txtValue").val()
        });
	}
  
</script>

</body>
</html>